console.log('commonjs----');

$.ajax({
    url: '/api/list',
    success(res) {
        let html = '<ul>'
        $.each(res.data, (index, value) => {
            html += '<li>' + value + '</li>'
        })
        html += '</ul>';
        $('#list').html(html);
        console.log(res);
    }
})